package com.huxi.lang.exception;

import java.util.List;
import java.util.Objects;

public class LineException extends RowException {

	private static final long serialVersionUID = 1L;

	private int startIndex = -1;
	private int lineIndex = -1;

	protected LineException(String message, List<Throwable> causes, int rowIndex, String rowValue, int lineIndex) {
		super(message, causes, rowIndex, rowValue);
		this.lineIndex = lineIndex;
	}

	public int getStartIndex() {
		return startIndex;
	}

	public int getLineIndex() {
		return lineIndex;
	}

	public String getLine() {
		return Objects.toString(getRowValue());
	}

}
